package edu.wtbu.cs.androiddemo.activity.jump;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import androidx.activity.EdgeToEdge;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.graphics.Insets;
import androidx.core.view.ViewCompat;
import androidx.core.view.WindowInsetsCompat;

import edu.wtbu.cs.androiddemo.R;


/**
 *
 *
 */
public class GoodsActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        EdgeToEdge.enable(this);
        setContentView(R.layout.activity_goods);
    }

    public void onClickGood(View view){

        GoodInfo goodInfo = new GoodInfo();
        goodInfo.setImge(R.drawable.img704);
        goodInfo.setProductLoc("广东深圳");
        goodInfo.setName("儿童相机数码可拍照可打印小孩生日");
        goodInfo.setInfo("产品描述描述咿咿呀呀咿咿呀呀");
        goodInfo.setPrice("159");
        goodInfo.setVolume("2444");

        goodInfo.setShopName("放阔玩具店");

        Intent intent = new Intent(GoodsActivity.this,GoodDetailActivity.class);
        Bundle bundle = new Bundle();
        bundle.putSerializable("goodinfo",goodInfo);
        intent.putExtras(bundle);
        intent.putExtra("key","12343");
        startActivity(intent);
    }
}